﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>{$ShopTitle}</title>
    <style type="text/css">
        .ReButton
        {
            border-color: #D8D8D8;
            border-style: solid;
            border-width: 1px;
            display: block;
            height: 18px;
            line-height: 18px;
            margin: auto;
            text-align: center;
            text-indent: 0;
            width: 92px;
            border-bottom: 2px solid #B5A273;
            padding-bottom: 4px;
            padding-left: 0;
            padding-top: 0;
            margin-left: 20px;
        }
    </style>
    {$linkcss/}
    <script src="../Js/StorePublic/f_Credit.js" type="text/javascript"></script>
    <script src="../Skin/CommStyle/js/jquery-1.8.3.min.js" type="text/javascript"></script>
    <script src="Js/Ajax.js" type="text/javascript"></script>
    <script src="Js/ShopIndexAjax.js" type="text/javascript"></script>
    <script type="text/javascript">

        function onblurSearchBox() {
            var lbbName = document.getElementById("lbbName");
            lbbName.style.display = "none";
        }

        function onleaveSearchBox() {
            var lbbName = document.getElementById("lbbName");
            var shopq = document.getElementById("shopProduct");
            if (shopq.value == "") {
                lbbName.style.display = "block";
            }
        }

        function Columnchange(tag) {

            window.location.href = "ShopIndex.aspx?ColumnTag=" + tag;
        }

        function PageLoad() {

            var CoumnTag = "HomePage";

            if (request("ColumnTag") != null && request("ColumnTag") != "") {
                CoumnTag = request("ColumnTag");
            }

            switch (CoumnTag) {
                case "HomePage":
                    var liCurrent1 = document.getElementById("liCurrent1");
                    var HomePage = document.getElementById("HomePage");
                    var Credit = document.getElementById("CreditStatus");
                    var ShopInfo = document.getElementById("ShopInfo");
                    var ExchangeArea = document.getElementById("ExchangeArea");
                    var RepurchaseExplain = document.getElementById("RepurchaseExplain");
                    var BuyNotes = document.getElementById("BuyNotes");

                    var AlTProductListlProductList = document.getElementById("AllProductList"); //显示所有产品

                    AlTProductListlProductList.style.display = "none";

                    HomePage.style.display = "block";
                    Credit.style.display = "none";
                    ShopInfo.style.display = "none";
                    ExchangeArea.style.display = "none";
                    RepurchaseExplain.style.display = "none";
                    BuyNotes.style.display = "none";
                    liCurrent1.className = "current";

                    break;
                case "CreditStatus":
                    var liCurrent2 = document.getElementById("liCurrent2");
                    var liCurrent1 = document.getElementById("liCurrent1");
                    var HomePage = document.getElementById("HomePage");
                    var Credit = document.getElementById("CreditStatus");
                    var ShopInfo = document.getElementById("ShopInfo");
                    var ExchangeArea = document.getElementById("ExchangeArea");
                    var RepurchaseExplain = document.getElementById("RepurchaseExplain");
                    var BuyNotes = document.getElementById("BuyNotes");
                    liCurrent2.className = "current";
                    liCurrent1.className = "";
                    HomePage.style.display = "none";
                    Credit.style.display = "block";
                    ShopInfo.style.display = "none";
                    ExchangeArea.style.display = "none";
                    RepurchaseExplain.style.display = "none";
                    BuyNotes.style.display = "none";
                    break;
                case "ShopInfo":
                    var liCurrent2 = document.getElementById("liCurrent5");
                    var liCurrent1 = document.getElementById("liCurrent1");
                    var HomePage = document.getElementById("HomePage");
                    var Credit = document.getElementById("CreditStatus");
                    var ShopInfo = document.getElementById("ShopInfo");
                    var ExchangeArea = document.getElementById("ExchangeArea");
                    var RepurchaseExplain = document.getElementById("RepurchaseExplain");
                    var BuyNotes = document.getElementById("BuyNotes");
                    liCurrent2.className = "current";
                    liCurrent1.className = "";
                    HomePage.style.display = "none";
                    Credit.style.display = "none";
                    ShopInfo.style.display = "block";
                    ExchangeArea.style.display = "none";
                    RepurchaseExplain.style.display = "none";
                    BuyNotes.style.display = "none";

                    break;
                case "RepurchaseExplain":
                    var liCurrent2 = document.getElementById("liCurrent6");
                    var liCurrent1 = document.getElementById("liCurrent1");
                    var HomePage = document.getElementById("HomePage");
                    var Credit = document.getElementById("CreditStatus");
                    var ShopInfo = document.getElementById("ShopInfo");
                    var ExchangeArea = document.getElementById("ExchangeArea");
                    var RepurchaseExplain = document.getElementById("RepurchaseExplain");
                    var BuyNotes = document.getElementById("BuyNotes");
                    liCurrent2.className = "current";
                    liCurrent1.className = "";
                    HomePage.style.display = "none";
                    Credit.style.display = "none";
                    ShopInfo.style.display = "none";
                    ExchangeArea.style.display = "none";
                    RepurchaseExplain.style.display = "block";
                    BuyNotes.style.display = "none";

                    break;
                case "BuyNotes":
                    var liCurrent2 = document.getElementById("liCurrent7");
                    var liCurrent1 = document.getElementById("liCurrent1");
                    var HomePage = document.getElementById("HomePage");
                    var Credit = document.getElementById("CreditStatus");
                    var ShopInfo = document.getElementById("ShopInfo");
                    var ExchangeArea = document.getElementById("ExchangeArea");
                    var RepurchaseExplain = document.getElementById("RepurchaseExplain");
                    var BuyNotes = document.getElementById("BuyNotes");
                    liCurrent2.className = "current";
                    liCurrent1.className = "";
                    HomePage.style.display = "none";
                    Credit.style.display = "none";
                    ShopInfo.style.display = "none";
                    ExchangeArea.style.display = "none";
                    RepurchaseExplain.style.display = "none";
                    BuyNotes.style.display = "block";

                    break;
                case "ExchangeArea":
                    var liCurrent2 = document.getElementById("liCurrent3");
                    var liCurrent1 = document.getElementById("liCurrent1");
                    var HomePage = document.getElementById("HomePage");
                    var Credit = document.getElementById("CreditStatus");
                    var ShopInfo = document.getElementById("ShopInfo");
                    var ExchangeArea = document.getElementById("ExchangeArea");
                    var RepurchaseExplain = document.getElementById("RepurchaseExplain");
                    var BuyNotes = document.getElementById("BuyNotes");


                    liCurrent2.className = "current";
                    liCurrent1.className = "";
                    HomePage.style.display = "none";
                    Credit.style.display = "none";
                    ShopInfo.style.display = "none";
                    ExchangeArea.style.display = "block";
                    RepurchaseExplain.style.display = "none";
                    BuyNotes.style.display = "none";
                    break;
                case "ProductList":

                    var HomePage = document.getElementById("HomePage");
                    var liCurrent1 = document.getElementById("liCurrent1");
                    var liCurrent4 = document.getElementById("liCurrent4");
                    liCurrent4.className = "current";
                    liCurrent1.className = "";

                    HomePage.style.display = "block";
                    var Shoprecommend = document.getElementById("Shoprecommend"); //推荐产品
                    var TProductList = document.getElementById("TProductList"); //商品列表
                    var broadcasts = document.getElementById("broadcasts"); //图片轮廓
                    var TShopbbs = document.getElementById("TShopbbs"); //交流区
                    var AlTProductListlProductList = document.getElementById("AllProductList"); //显示所有产品
                    AlTProductListlProductList.style.display = "block";
                    Shoprecommend.style.display = "none";
                    TProductList.style.display = "none";
                    broadcasts.style.display = "none";
                    TShopbbs.style.display = "none";
                    break;
            }

            //信用评论的切换
            var WhoRate = "SalerRate";
            var J_tab2 = document.getElementById("J_tab_2");
            var J_tab3 = document.getElementById("J_tab_3");
            if (request("WhoRate") != null && request("WhoRate") != '') {
                WhoRate = request("WhoRate");
            }
            if (WhoRate == "SalerRate") {
                J_tab2.className = "selected";
                J_tab3.className = "";
            }
            else {
                J_tab2.className = "";
                J_tab3.className = "selected";
            }


            //好评率
            var RateType = "0";
            var CommentRate = "-1";
            var getRatetype = document.getElementById("selectRateType");
            var getselectComment = document.getElementById("selectComment");
            if (request("RateType") != null) {
                RateType = request("RateType");
            }
            switch (RateType) {
                case "0":
                    getRatetype.selectedIndex = 0;
                    break;
                case "1":
                    getRatetype.selectedIndex = 1;
                    break;
                case "2":
                    getRatetype.selectedIndex = 2;
                    break;
                case "3":
                    getRatetype.selectedIndex = 3;
                    break;
            }


            if (request("CommentRate") != null) {
                CommentRate = request("CommentRate");
            }
            switch (CommentRate) {
                case "-1":
                    getselectComment.selectedIndex = 0;
                    break;
                case "1":
                    getselectComment.selectedIndex = 1;
                    break;
                case "0":
                    getselectComment.selectedIndex = 2;
                    break;
            }

            var DivThreadList = document.getElementById("DivThreadList");
            var DivReplyList = document.getElementById("DivReplyList");
            var NewThread = document.getElementById("NewThread"); //发布新帖
            var ReplyThread = document.getElementById("ReplyThread"); //发表回复

            if (request("IsThread") != null && request("IsThread") != '') {
                if (request("IsThread") == "Yes") {
                    DivThreadList.style.display = "block";
                    NewThread.style.display = "block";
                }
                else {
                    DivReplyList.style.display = "block";
                  //  ReplyThread.style.display = "block";
                }
            }
            else {
                DivThreadList.style.display = "block";
                NewThread.style.display = "block";
            }

            //排行榜切换样式

            var CollectionLi = document.getElementById("CollectionLi");
            var MonthLi = document.getElementById("MonthLi");

            if (request("RankTag") != null && request("RankTag") != '') {
                if (request("RankTag") == "topSelling") {
                    MonthLi.className = "selected";
                    CollectionLi.className = "";
                }
                else {
                    MonthLi.className = "";
                    CollectionLi.className = "selected";
                }
            }


            //切换选择信用度时间
            var SelectCreditDate = document.getElementById("SelectCreditDate");
            var JustDate = "Week";

            if (request("JustDate") != null && request("JustDate") != "") {
                JustDate = request("JustDate");
            }

            if (JustDate == "Week") {
                SelectCreditDate.selectedIndex = 0;
            }
            else {
                SelectCreditDate.selectedIndex = 1;
            }

            //发帖
            var SendType = "SeeAll";
            var posttitle = document.getElementById("posttitle");
            if (request("SendType") != null && request("SendType") != "") {
                SendType = request("SendType");
            }
            if (SendType == "Send") {
                posttitle.focus();
            }


            var HiddenShopLogo = document.getElementById("HiddenShopLogo").value; //店铺Logo
            var ShopLogo = document.getElementById("ShopLogo");
            if (HiddenShopLogo != "") {
                ShopLogo.style.display = "block";
                $("#ShopLogo").attr("src", HiddenShopLogo);
            }
            else {
                ShopLogo.style.display = "block";
                $("#ShopLogo").attr("src", "images/Shop_Logo.png");
            }
            var shopbiaozhi = document.getElementById("shopbiaozhi"); //背景图
            var dianbiaoImg = document.getElementById("dianbiaoImg"); //店标图
            var ShopTitle = document.getElementById("ShopTitle"); //店铺标题

            var HiddenShowType = document.getElementById("HiddenShowType").value; //显示类型
            var BackGround = document.getElementById("HiddenBackGroundImage").value; //背景图片


            var dianbiao = document.getElementById("Hiddendianbiao").value;
            $("#dianbiaoImg").attr("src", dianbiao);

            var HiddenShopTitle = document.getElementById("HiddenShopTitle").value;
            document.getElementById("ShopTitle").innerHTML = HiddenShopTitle;


            var ShowTypeValue = HiddenShowType.substring(0, HiddenShowType.length - 1).split(',');

            for (var i = 0; i < ShowTypeValue.length; i++) {
                if (ShowTypeValue[i] == "1") {
                    dianbiaoImg.style.display = "block";
                }
                else if (ShowTypeValue[i] == "2") {
                    ShopTitle.style.display = "block";
                }
                else {
                    $("#shopbiaozhi").css("background-image", "url(" + BackGround + ")");
                }

            }


        }
        //发布新帖
        function AddIssue() {
            var NewThread = document.getElementById("NewThread"); //发布新帖
            NewThread.style.display = "block";

            var addTitle = document.getElementById("posttitle");//标题
            addTitle.focus();
            addTitle.value = "";
            var addContent = document.getElementById("postcontent");//内容
            addContent.value = "";
        }
        //回复帖子
        function ReplyIssue() {
            var ReplyThread = document.getElementById("ReplyThread"); //发表回复
            ReplyThread.style.display = "block";

            var ReplyBox = document.getElementById("ReplyBox");
            ReplyBox.focus();
            //new add
            var btnReplyOk = document.getElementById("replyOk");
            btnReplyOk.style.display = "block";
            var btnSecondReply = document.getElementById("secondReply");
            btnSecondReply.style.display = "none";
        }
        //new add
        function ReplyIssue2(replyId) {
            var ReplyThread = document.getElementById("ReplyThread"); //发表回复
            ReplyThread.style.display = "block";
            var ReplyBox = document.getElementById("ReplyBox");
            ReplyBox.focus();
            var btnReplyOk = document.getElementById("replyOk");
            btnReplyOk.style.display = "none";
            var btnSecondReply = document.getElementById("secondReply");
            btnSecondReply.style.display = "block";
            var hid = document.getElementById("HiddenReplyID");
            hid.value = replyId;
        }


        //得到编辑的内容
        function getEditContent() {
            var getReplyThreadContent = document.getElementById("getReplyThreadContent");
            var EditThreadBox = document.getElementById("EditThreadBox");
           // EditThreadBox.focus();

            var TabEditThread = document.getElementById("TabEditThread");
            var reg = /(^\s*)|(\s*$)/g;
            if (window.ActiveXObject) {
                //alert("A" + getReplyThreadContent.innerText.replace(reg,"")+"A");
                EditThreadBox.value = getReplyThreadContent.innerText; //IE兼容
            }
            else {
                //alert(getReplyThreadContent.textContent.replace(/(^\s*)|(\s*$)/g, ""));
                //alert("A0" + getReplyThreadContent.textContent.replace(reg, "") + "0A");
                EditThreadBox.value = getReplyThreadContent.textContent.replace(reg, ""); //火狐兼容
            }
            //alert("B"+EditThreadBox.value+"B");
            TabEditThread.style.display = "block";
        }

        //产品排行的切换
        function CutRank(tag) {
            var ShopID = document.getElementById("HiddenShopID").value; //店铺的ID号

            var SeeWay = "";
            var AllTag = "";
            var ColumnTag = "HomePage";

            if (request("ColumnTag") != null && request("ColumnTag") != "") {
                ColumnTag = request("ColumnTag");
            }

            var SeeWay = "";
            var strCss = "";
            var cssID = 0;

            if (request("SeeWay") != null) {
                if (request("SeeWay") == "Issue") {
                    SeeWay = "&SeeWay=Issue";
                }
            }

            if (request("cssID") != null) {
                try {
                    cssID = parseInt(request("cssID"));
                }
                catch (Error) {
                    cssID = 0;
                }
            }
            if (cssID > 0) {
                strCss = "&cssID=" + cssID;
            }

            window.location.href = "ShopIndex.aspx?ShopID=" + ShopID + "&ColumnTag=" + ColumnTag + "" + SeeWay + "" + strCss + "&RankTag=" + tag;

        }


        /****搜索店内产品*******/

        function SearchProduct(Keyword, Price1, Price2) {

            var ShopID = document.getElementById("HiddenShopID").value; //店铺的ID号

            var KeyPrice1 = document.getElementById(Price1).value;
            var KeyPrice2 = document.getElementById(Price2).value;

            var KeywordBox = document.getElementById(Keyword).value;
            
            var SeeWay = "";
            var strCss = "";
            var cssID = 0;

            if (request("SeeWay") != null) {
                if (request("SeeWay") == "Issue") {
                    SeeWay = "&SeeWay=Issue";
                }
            }

            if (request("cssID") != null) {
                try {
                    cssID = parseInt(request("cssID"));
                }
                catch (Error) {
                    cssID = 0;
                }
            }
            if (cssID > 0) {
                strCss = "&cssID=" + cssID;
            }

            if (isNaN(KeyPrice1) || KeyPrice1 < 0) {
                alert('价格输入有误！');
                return false;
            }
            if (isNaN(KeyPrice2) || KeyPrice2 < 0) {
                alert('价格输入有误！');
                return false;
            }
            
            if (parseFloat(KeyPrice1) > parseFloat(KeyPrice2)) {
                alert('输入第一个价格不能大于第二个价格！');
                return false;
            }
            window.location.href = "ShopIndex.aspx?ShopID=" + ShopID + "&ColumnTag=ProductList" + SeeWay + "" + strCss + "&KeyPrice1=" + KeyPrice1 + "&KeyPrice2=" + KeyPrice2 + "&SearchKey=" + escape(KeywordBox) + "";
        }


        /****搜索店内产品*******/

        function AllSelectThread() {
            var strValue = "";
            var allselect = document.getElementsByName("CheckThreadID");
            var hiddenThread = document.getElementsByName("hiddenThreadID");

            for (var i = 0; i < allselect.length; i++) {
                if (allselect[i].type == 'checkbox' && allselect[i].checked == false) {
                    allselect[i].checked = true;

                }
                else if (allselect[i].type == 'checkbox' && allselect[i].checked == true) {
                    allselect[i].checked = false;
                }
                strValue += hiddenThread[i].value + ',';
            }
        }


        //切换信用的条件

        function CutCreditWhere(obj) {

            var ShopID = document.getElementById("HiddenShopID").value; //店铺的ID号

            var Pageindex = 1;
            var RateType = "";
            var CommentRate = "";
            var WhoRate = "OtherRate";
            var SeeWay = "";
            var strCss = "";
            var cssID = 0;

            if (request("Pageindex") != null && request("Pageindex") != "") {
                Pageindex = request("Pageindex");
            }
            if (request("RateType") != null && request("RateType") != "") {
                RateType = request("RateType");
            }
            if (request("CommentRate") != null && request("CommentRate") != "") {
                CommentRate = request("CommentRate");
            }
            if (request("WhoRate") != null && request("WhoRate") != "") {
                WhoRate = request("WhoRate");
            }

            var SeeWay = "";
            var strCss = "";
            var cssID = 0;

            if (request("SeeWay") != null) {
                if (request("SeeWay") == "Issue") {
                    SeeWay = "&SeeWay=Issue";
                }
            }

            if (request("cssID") != null) {
                try {
                    cssID = parseInt(request("cssID"));
                }
                catch (Error) {
                    cssID = 0;
                }
            }
            if (cssID > 0) {
                strCss = "&cssID=" + cssID;
            }

            window.location.href = "ShopIndex.aspx?ShopID=" + ShopID + "&ColumnTag=CreditStatus&WhoRate=" + WhoRate + "" + SeeWay + "" + strCss + "&RateType=" + RateType + "&CommentRate=" + CommentRate + "&JustDate=" + obj + "&Pageindex=" + Pageindex + "";
        }


        //我要发帖
        function SendThread() {
            //SendType=Send表示发帖，=SeeAll表示查看全部帖子
            var ShopID = document.getElementById("HiddenShopID").value; //店铺的ID号
            window.location.href = "ShopIndex.aspx?ShopID=" + ShopID + "&SendType=Send&ColumnTag=ExchangeArea";
        }

        //全部帖子
        function SeeAllThread() {
            //SendType=Send表示发帖，=SeeAll表示查看全部帖子
            var ShopID = document.getElementById("HiddenShopID").value; //店铺的ID号
            window.location.href = "ShopIndex.aspx?ShopID=" + ShopID + "&SendType=SeeAll&ColumnTag=ExchangeArea";
        }
       
    </script>
</head>
<body id="body1" onload="PageLoad()">
    <div id="site-nav">
        <div id="site-nav-bd">
            <!--<p class="login-info">
</p>-->
            <ul class="quick-menu">
                <li class="home"><a href="../index.aspx">商城首页</a></li>
                <li><a href="../ProductList.aspx" target="_top">我要买</a> </li>
                <li><a href="../ClassChoose.aspx" target="_top">我要卖</a> </li>
                <!-- <li><a href="../categorylist.aspx" target="_top">我要买</a> </li>
        <li><a href="../saleproduct.aspx" target="_top">我要卖</a> </li>-->
                <!--<li class="mytaobao menu-item">
    <div class="menu">
        <a class="menu-hd" href="#" target="_top" rel="nofollow">我的产品<b></b></a>
        <div class="menu-bd">
            <div class="menu-bd-panel">
                <div>
                    <a href="#" target="_top" rel="nofollow">已买到的宝贝</a>
                    <a href="#" target="_top" rel="nofollow">已卖出的宝贝</a>
                </div>
            </div>
        </div>
    </div>
</li>-->
                <li class="cart"><a href="../shoppingcart.aspx?ProductID=0" target="_top" rel="nofollow">
                    <s></s>购物车 </a></li>
                <!--<li class="favorite">
    <a href="#" target="_top" rel="nofollow">收藏夹</a>
</li>-->
                <li class="search menu-item">
                    <div class="menu">
                        <span class="menu-hd"><s></s>搜索<b></b></span>
                        <div class="menu-bd">
                            <div class="menu-bd-panel">
                                <form action="#" style="z-index: 100000" name="topSearch">
                                <input id="TopSearchName" name="q" maxlength="60" onkeydown="SearchEnter('TopSearchName')"
                                    onkeypress="SearchEnter('TopSearchName')" />
                                <button type="button" onclick="SearchAllProduct('TopSearchName')" id="btnSearch">
                                    搜 索
                                </button>
                                </form>
                            </div>
                        </div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
    <div id="header">
        <div id="shop-head" class="custom-logo">
            <h1 id="shop-logo">
                <p>
                    <a href="../index.aspx">
                        <img id="ShopLogo" class="logo-img" style="display: none" /></a>
                </p>
            </h1>
            <div class="clear">
                <div class="shop-wrap">
                    <div id="shop-search">
                        <form id="J_TBSearchForm">
                        <label id="lbbName">
                            想找什么产品?</label>
                        <input type="text" id="shopProduct" name="q" runat="server" class="shop-text" onkeypress="SearchEnter('shopProduct')"
                            onkeydown="SearchEnter('shopProduct')" onblur="onleaveSearchBox()" onclick="onblurSearchBox()" />
                        <!--<input type="text" id="Text1" name="q" autocomplete="off" class="shop-text" onkeypress="SearchEnter('shopProduct')" onkeydown="SearchEnter('shopProduct')" onblur="onleaveSearchBox()" onclick="onblurSearchBox()" />
-->
                        <span class="instore">
                            <button class="searchmy" data-action="" hidefocus="true" type="button" onclick="SearchShopProduct()">
                                搜本店</button>
                        </span><span class="global">
                            <button class="searchtb" type="button" onclick="SearchAllProduct('shopProduct')"
                                id="btnSearchProduct">
                                搜产品</button>
                        </span><b class="shop-radius-l"></b>
                        </form>
                    </div>
                </div>
                <div id="shop-info">
                    <div class="shop-info-simple">
                        <a class="hCard fn" href="ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=ShopInfo">{$SalerName}</a> <span class="J_WangWang" data-nick="%E5%A8%81%E8%B4%AD%E5%B0%8F%E7%BD%97"
                            data-tnick="" data-encode="true" data-display="inline"></span><span tb:virtual="0%"
                                tb:real="0%" class="shop-rank">累计信用：<a href="ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=CreditStatus">{$TotalCredit}</a></span>
                    </div>
                    <b class="arrow-wrap"><i class="shop-arrow"></i></b>
                    <div class="shop-info-details">
                        <div class="shop-details">
                            <h4>
                                店铺信息</h4>
                            <ul class="shop-attach">
                                <li class="goodrate"><span>好评率：</span>{$TotalGoodRate}%</li>
                                <li class="setuptime"><span>创店时间：</span>{$ShopCreateDate}</li>
                            </ul>
                        </div>
                        <div class="shop-other">
                            <a class="tb-fav J_PopupTrigger collection xshop_sc J_TDialogTrigger" target="_blank"
                                href="/Member/AddMyFav.aspx?ShopID={$ShopID}&tag=AddShopFav" data-closebtn="true"
                                data-width="440" data-height="260">收藏</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div id="J_shopViewed">
    </div>
    <!-- from vmcommon 3.0 -->
    <div id="content" class="tb-shop head-expand eshop " data-cat="J_Cat0">
        {$PlaceRepair/}
        <div id="hd">
            <div class="layout grid-m">
                <div class="col-main">
                    <div class="main-wrap J_TRegion" data-modules="main" data-width="h950">
                        <div class="box J_TBox">
                            <div class="shop-banner">
                                <div class="bd" id="">
                                    <div class="shop-header " id="shopbiaozhi" style="height: 150px;">
                                        <table style="margin-left: 20px; margin-top: 28px">
                                            <tr>
                                                <td>
                                                    <img id="dianbiaoImg" src="" width="80px" height="78px" alt="" style="display: none" />
                                                </td>
                                                <td class="shop-title">
                                                    <h2 id="ShopTitle" style="margin-left: 7px; display: none">
                                                    </h2>
                                                </td>
                                            </tr>
                                        </table>
                                        <div class="nav">
                                            <ul>
                                                <li id="liCurrent1" title="首页"><a href="ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=HomePage{$SeeWay}{$cssID}"
                                                    title="首页"><em>首页</em></a> </li>
                                                <!--<li class="allcat">
<a href="#"  id="J_HeadCats" ><em>全部分类 &#9660;</em></a>
</li>-->
                                                <li id="liCurrent2"><a href="ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=CreditStatus{$SeeWay}{$cssID}">
                                                    <em>信用评价</em></a></li>
                                                <li id="liCurrent3" class="" title="交流区"><a href="ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=ExchangeArea{$SeeWay}{$cssID}"
                                                    title="交流区"><em>交流区</em></a> </li>
                                                <li id="liCurrent4" class="" title=""><a href="ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=ProductList{$SeeWay}{$cssID}"
                                                    title=""><em>全部商品</em></a> </li>
                                                <li id="liCurrent5" class="" title="店铺介绍"><a href="ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=ShopInfo{$SeeWay}{$cssID}"
                                                    title="店铺介绍"><em>店铺介绍</em></a> </li>
                                                <li id="liCurrent6" style="display: none" title="回购说明"><a href="ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=RepurchaseExplain{$SeeWay}{$cssID}"
                                                    title="回购说明"><em>回购说明</em></a> </li>
                                                <li id="liCurrent7" class="" style="display: none" title="购买须知"><a href="ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=BuyNotes{$SeeWay}{$cssID}"
                                                    title="购买须知"><em>购买须知</em></a> </li>
                                            </ul>
                                        </div>
                                    </div>
                                    <div id="J_HeadCatsPopup" class="tb-shop hidden">
                                        <div class="cat-items">
                                            <div class="cat-all">
                                                <a href="ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=ProductList&{$SeeWay}{$cssID}"
                                                    class="cat-hd">查看所有宝贝>></a>
                                                <p>
                                                    <a href="#">按销量</a> | <a href="#">按新品</a> | <a href="#">按价格</a> | <a href="#">按收藏</a></p>
                                            </div>
                                            <div class="bd">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 首页模块 -->
        <div id="HomePage">
            <div class="layout grid-s5m0 ">
                <div class="col-main clearfix">
                    <div class="main-wrap J_TRegion">
                        <!-- 所有产品 -->
                        <div id="AllProductList" class="box J_TBox" style="display: block">
                            <div class="shop-hesper" id="J_ShopSearchResult">
                                <div class="bd">
                                    <span id="J_ShopSearchUserParams" data-info="upviewType=&upsort=&upitemNum=&upshowGaid=&upicSize=">
                                    </span><span id="J_UserSearchParams" data-info="keyword=&price1=&price2=&bannerPageTitle=搜索宝贝">
                                    </span>
                                    <div class="shop-hesper-hd J_TWidget" data-widget-config="{'triggerCls': 'trigger', 'panelCls': 'hesper-cats-list','multiple': 'true', 'activeTriggerCls': 'collapse'}"
                                        data-widget-type="Accordion">
                                        <div class="hesper-cats  expand  " id="J_HesperCats">
                                            <ol>
                                                <li><a href="ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=ProductList&{$SeeWay}{$cssID}">
                                                    所有宝贝</a><i></i></li>
                                            </ol>
                                            <ul class="hesper-cats-list">
                                            </ul>
                                            <i id="J_HesperCatsTrigger" class="trigger" title="展开或者收缩"></i>
                                        </div>
                                        <form action="http://shop64340532.taobao.com" id="shop-search-list" method="get">
                                        <div class="shop-search">
                                            <div class="search-form">
                                                <ul>
                                                    <li class="keyword">
                                                        <label for="keyword">
                                                            关键字：</label>
                                                        <input id="keywordBox2" type="text" value="" />
                                                    </li>
                                                    <li class="price">
                                                        <label for="price">
                                                            价格：</label>
                                                        <input id="KeyPrice3" type="text" class="price J_CheckInput" value="" />
                                                        到
                                                        <input id="KeyPrice4" type="text" class="price J_CheckInput" value="" />
                                                    </li>
                                                    <li>
                                                        <button type="button" class="button" onclick="SearchProduct('keywordBox2','KeyPrice3','KeyPrice4')">
                                                            搜索</button>
                                                    </li>
                                                </ul>
                                            </div>
                                            <div class="search-result">
                                                共搜索到<span>{$lbProductNumber/}</span>个符合条件的商品。
                                            </div>
                                        </div>
                                        </form>
                                    </div>
                                    <div class="shop-hesper-bd grid">
                                        <!--<div class="shop-filter">
<div class="mode">
<span>显示：</span>
<a rel="shopSearch" href="http://shop64340532.taobao.com/?search=y&scid=0&price1=&price2=&keyword=&old_starts=&categoryp=&pidvid=&orderType=_hotsell&viewType=list&isNew=&baobei_type="
alt="列表方式" title="列表方式" class="mode-row">列表模式</a>
<a rel="shopSearch" href="http://shop64340532.taobao.com/?search=y&scid=0&price1=&price2=&keyword=&old_starts=&categoryp=&pidvid=&orderType=_hotsell&viewType=grid&isNew=&baobei_type="
alt="图表方式" title="图表方式" class="mode-grid">图表模式</a>
</div>
<div class="taxis">
<span>排序：</span>
<a rel="shopSearch" href="http://shop64340532.taobao.com/?search=y&scid=0&price1=&price2=&keyword=&old_starts=&categoryp=&pidvid=&orderType=hotsell&viewType=grid&isNew=&baobei_type="
alt="按销量排列" title="按销量排列" class="down">销量<i class="icon"></i></a>
<a rel="shopSearch" href="http://shop64340532.taobao.com/?search=y&scid=0&price1=&price2=&keyword=&old_starts=&categoryp=&pidvid=&orderType=newOn&viewType=grid&isNew=&baobei_type="
alt="按新品排列" title="按新品排列" class="def">新品<i class="icon"></i></a>
<a rel="shopSearch" href="http://shop64340532.taobao.com/?search=y&scid=0&price1=&price2=&keyword=&old_starts=&categoryp=&pidvid=&orderType=price&viewType=grid&isNew=&baobei_type="
alt="按价格排列" title="按价格排列" class="def">价格<i class="icon"></i></a>
<a rel="shopSearch" href="http://shop64340532.taobao.com/?search=y&scid=0&price1=&price2=&keyword=&old_starts=&categoryp=&pidvid=&orderType=hotkeep&viewType=grid&isNew=&baobei_type="
alt="按收藏排列" title="按收藏排列" class="fav def">收藏<i class="icon"></i></a>
<a rel="shopSearch" href="http://shop64340532.taobao.com/?search=y&scid=0&price1=&price2=&keyword=&old_starts=&categoryp=&pidvid=&orderType=coefp&viewType=grid&isNew=&baobei_type="
alt="按人气排列" title="按人气排列" class="def">人气<i class="icon"></i></a>
</div>
<div class="vip">
<input id="baotypeBox" name="boTypeBox" value="1003" type="checkbox" onclick="vipSubmit();" class="checkbox"  />店铺VIP商品
</div>
<div class="pagination pagination-mini">
<span class="page-info">1/1</span>
<a class="disable">上一页</a>
<a class="disable">下一页</a>

</div>
</div>-->
                                        <table style="width: 100%; text-align: center">
                                            <tr>
                                                <td>
                                                    <ul class="shop-list">
                                                        {$ReAllProductList/}
                                                    </ul>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    {$AllProductPage/}
                                                </td>
                                            </tr>
                                        </table>
                                        <!--end pagination-->
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- 所有产品 -->
                        <div id="Shoprecommend" class="box J_TBox">
                            <div class="shop-recommend">
                                <div class="hd">
                                    <h3>
                                        <span>掌柜推荐宝贝</span></h3>
                                </div>
                                <div class="bd">
                                    <div class="grid">
                                        {$RecommendationList/}
                                        <p class="more-items">
                                            <a href='ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=ProductList&{$SeeWay}{$cssID}'
                                                class="button">所有宝贝</a>
                                        </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="broadcasts" class="box J_TBox" style="display: none">
                            <div class="shop-slider" id="ShopSlider">
                                <div class="hd">
                                    <h3>
                                        <span>图片轮播</span></h3>
                                </div>
                                <div class="container" id="idTransformView2">
                                    <ul class="slider slider2" id="idSlider2">
                                        <li>
                                            <img src="" alt="" /></li>
                                        <li>
                                            <img src="" alt="" /></li>
                                        <li>
                                            <img src="" alt="" /></li>
                                    </ul>
                                    <ul class="num" id="idNum2">
                                        <li>1</li>
                                        <li>2</li>
                                        <li>3</li>
                                        <li>4</li>
                                        <li>5</li>
                                    </ul>
                                </div>
                            </div>
                        </div>
                        <div id="TProductList" class="box J_TBox">
                            <div class="shop-display">
                                <div class="hd">
                                    <h3>
                                        <span>{$ProductListName/}</span></h3>
                                </div>
                                <div class="bd">
                                    <div class="grid">
                                        <ul class="shop-list">
                                            {$ReProductList/}
                                        </ul>
                                        <p class="more-items">
                                            <a href="#" class="button">更多宝贝</a>
                                        </p>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!-- module-cache-info: module: shop.forumShow:1.0-common key: user-656195019-prototype-8-6 cacheArea: 49 cachedTime: 2011-01-21 10:41:32 aliveTime: 86400 AppIP:172.23.16.55 -->
                        <div id="TShopbbs" class="box J_TBox" style="display: block">
                            <div class="shop-bbs">
                                <div class="hd">
                                    <h3>
                                        <span>店铺交流区</span></h3>
                                    <div class="handle">
                                        <a href="javascript:SendThread()">我要发帖</a> <a href="javascript:SeeAllThread()">全部帖子</a>
                                    </div>
                                </div>
                                <div class="bd">
                                    {$ReHomeThreadList/}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-sub J_TRegion">
                    <div class="box J_TBox">
                        <div class="shop-search">
                            <div class="hd">
                                <h3>
                                    <span>搜索店内宝贝</span></h3>
                            </div>
                            <div class="bd">
                                <div class="search-form">
                                    <ul>
                                        <li class="keyword">
                                            <label for="keyword">
                                                关键字：</label>
                                            <input type="text" size="18" class="J_SEKeyword" name="keyword" id="KeywordBox1"
                                                value="" />
                                        </li>
                                        <li class="price">
                                            <label for="price">
                                                价格：</label>
                                            <span>
                                                <input id="KeyPrice1" type="text" class="price J_CheckInput J_SEprice1" size="4"
                                                    value="" />
                                                到
                                                <input id="KeyPrice2" class="price J_CheckInput J_SEprice2" type="text" size="4"
                                                    value="" />
                                            </span></li>
                                        <li>
                                            <button type="button" class="button" onclick="SearchProduct('KeywordBox1','KeyPrice1','KeyPrice2')">
                                                搜索</button></li>
                                    </ul>
                                </div>
                                {$PopularSearch/}
                            </div>
                        </div>
                    </div>
                    <div class="box J_TBox">
                        <div class="shop-links">
                            <div class="hd">
                                <h3>
                                    <span>友情链接</span></h3>
                            </div>
                            <div class="bd">
                                <ul>
                                    {$ReFriendLink/}
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="box J_TBox">
                        <div class="shop-category" id="ShopCategory">
                            <div class="hd">
                                <h3>
                                    <span>商品分类</span></h3>
                            </div>
                            <div class="bd">
                                <ul id="J_Cats" class="cats J_TWidget">
                                    <li class="cat">
                                        {$DataClassList/} 
                                        <h4>
                                            <i></i><a href="ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=ProductList&cssID={$cssID}">
                                                查看所有宝贝>></a></h4></li>
                                </ul>
                            </div>
                        </div>
                    </div>
                    <div class="box J_TBox">
                        <div class="shop-rank">
                            <div class="hd">
                                <h3>
                                    <span>{$ProductRankName/}</span></h3>
                            </div>
                            <div class="bd">
                                <div id="J_ranktab" class="rank-tab J_TWidget">
                                    <ul class="tab-nav">
                                        <li id="MonthLi" class="selected" onclick="CutRank('topSelling')"><span>本月热销排行</span></li>
                                        <li id="CollectionLi" onclick="CutRank('topCollect')"><span>热门收藏排行</span></li>
                                    </ul>
                                    <div class="rank-panels">
                                        <div class="rank-panel">
                                            <ul>
                                                {$ReShopRankList/}
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 首页模块 -->
        <!--信用模块 -->
        <div id="CreditStatus" class="shop-rate-box" style="display: none">
            <div class="clearfix personal-info personal-info-fullwidth">
                <div class="skin-gray">
                    <div class="box">
                        <div class="hd">
                            <h4>
                                个人信息</h4>
                        </div>
                        <div class="bd">
                            <dl>
                                <dd>
                                    <a href="#">{$SalerName}</a>
                                </dd>
                                <dt>所在地区：</dt>
                                <dd>
                                    {$Region}
                                </dd>
                                <!--                  <dt class="title">认证信息：</dt>
                    <dd>
		
		
			<a href="#" target="_blank">
		 		<img alt="支付宝实名认证" border="0" align="absmiddle" src="http://pics.taobaocdn.com/zfb_person_small.gif" title="支付宝实名认证">
		 	</a>
 
                    </dd>-->
                            </dl>
                            <!-- <ul class="rate-summary clearfix">
					<li class="credit">
    					买家信用:
                        <a id="J_BuyerRate" href="#">
                			
                	    </a>
                    </li>
				</ul>-->
                        </div>
                    </div>
                </div>
                <div class="personal-rating" id="personal-rating">
                    <div id="seller-and-buyer" class="box two-info">
                        <div class="hd">
                            <ul class="tab">
                                <li class="one-info" style="text-align: left">
                                    <h4 class="buyer">
                                        卖家信用 <a href="#" target="_blank">{$ShopBuyerCredit} </a>
                                    </h4>
                                    <p class="rate-summary">
                                        好评率：<em>{$GoodCommentRate}%</em></p>
                                </li>
                            </ul>
                        </div>
                        <div class="bd">
                            <div class="con" id="ratetable">
                                <table class="rate-info buyer-rate-info">
                                    <colgroup>
                                        <col>
                                        <col width="25%">
                                        <col width="25%">
                                        <col width="25%">
                                    </colgroup>
                                    <thead>
                                        <tr>
                                            <th>
                                                总计
                                            </th>
                                            <th>
                                                <!--<img src="../Images/CreditImage/rate-ok.gif" />-->
                                                <span class="rate-icon rate-ok" style="margin-left: 1px">好评</span>
                                            </th>
                                            <th>
                                                <!--<img src="../Images/CreditImage/rate-normal.gif" />-->
                                                <span class="rate-icon rate-normal" style="margin-left: 1px">中评</span>
                                            </th>
                                            <th>
                                                <!--<img src="../Images/CreditImage/rate-bad.gif" />-->
                                                <span class="rate-icon rate-bad" style="margin-left: 1px">差评</span>
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        <tr>
                                            <td>
                                                <select id="SelectCreditDate" onchange="CutCreditWhere(this.value)" class="J_ChangeTime">
                                                    <option value="Week">最近一周</option>
                                                    <option value="Month">最近一月</option>
                                                </select>
                                            </td>
                                            <td bgcolor="#ffffff">
                                                <a href="#">{$GoodComment}</a>
                                            </td>
                                            <td bgcolor="#ffffff">
                                                <a href="#">{$Comments}</a>
                                            </td>
                                            <td bgcolor="#ffffff">
                                                <a href="#">{$BadComment}</a>
                                            </td>
                                        </tr>
                                    </tbody>
                                    <tfoot id="buyerPunish">
                                        <!--	<tr>
            								<td colspan="4">
            									<div class="title">
            										<a class="J_TriggerPop" href="javascript:void(0)">处罚情况</a>:
            										<div class="quality-info-tip tip">
                                                        <p>处罚情况：淘宝对违反《淘宝用户行为管理规则》的用户进行的处罚。</p>
                                                        <i class="horn"></i>
                                                    </div>
            									</div>
            									<div class="punish">
            										uri: punishInfo.vm cacheTime: 2011-01-22 10:25:06 key: 275c5438eeb92296e1ade89e5898af8e cacheArea: 118 aliveTime: 1800 cacheType: PAGE_CACHE_CONTROL_TYPE
	该会员遵守淘宝用户行为管理规则良好
 
            									</div>
            								</td>
            							</tr>-->
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div id="relalist" class="s">
                <input type="hidden" id="RateType" value="1" />
                <ul class="rate-tab rate-tab-orange clearfix">
                    <li id="J_tab_new" class="hid"><a href="javascript:void(0)"><span></span></a></li>
                    <li id="J_tab_2" class="selected"><a href="javascript:ChangeComment('SalerC','?ShopID={$ShopID}{$SeeWay}{$cssID}&')">
                        <span>来自买家的评价</span></a></li>
                    <li id="J_tab_3" style="display: none">
                        <!--<a href="javascript:ChangeComment('OtherC','?ShopID={$ShopID}{$SeeWay}{$cssID}&')"><span>给他人的评价</span></a>-->
                    </li>
                </ul>
                <div id="reviews">
                    <div id="J_tab_2_table" class="hid show">
                        <table style="width: 100%; margin-top: 10px">
                            <tr>
                                <td style="width: 10%">
                                    <select id="selectRateType" class="act-changeRate" style="margin-right: 15px" onchange="ChangeRate(this.value,'ShopIndex.aspx?ShopID={$ShopID}&')">
                                        <option value="0">评价</option>
                                        <option value="1">好评</option>
                                        <option value="2">中评</option>
                                        <option value="3">差评</option>
                                    </select>
                                </td>
                                <td style="width: 45%; text-align: left">
                                    <select id="selectComment" class="act-changeType" onchange="ChangeCommentValue(this.value,'ShopIndex.aspx?ShopID={$ShopID}&')">
                                        <option value="-1">所有评论</option>
                                        <option value="1">有评论内容</option>
                                        <option value="0">无评论内容</option>
                                    </select>
                                </td>
                                <td style="width: 15%">
                                    评价人
                                </td>
                                <td style="width: 30%">
                                    宝贝信息
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4" style="width: 100%">
                                    {$ReCommentList/}
                                </td>
                            </tr>
                            <tr>
                                <td colspan="4" style="text-align: right">
                                    {$lbPage/}
                                    <input type="text" id="goPage" size="3" maxlength="3" value="1" />
                                    <input type="button" value="确定" onclick="UrlGoPage('ShopID={$ShopID}{$SeeWay}{$cssID}&','goPage','PageCountID')" />
                                    {$PageCountID/}
                                </td>
                            </tr>
                        </table>
                    </div>
                    <div id="J_tab_3_table" class="hid " data-loaded="">
                    </div>
                    <div id="J_tab_new_table" class="hid" data-loaded="">
                    </div>
                </div>
            </div>
            <div id="J_LicenceInfoPop" style="display: none; position: absolute; z-index: 100001;">
                <input type="hidden" id="xfile_license_url" value="" />
                <iframe id="J_LicenceCardIframe" class="licence-iframe" style="width: 398px; _width: 401px;
                    border: none; overflow-y: hidden;" frameborder="0" scrolling="no"></iframe>
            </div>
        </div>
        <!--信用模块 -->
        <!-- 店铺介绍模块 -->
        <div id="ShopInfo" style="display: none">
            <div class="layout grid-m">
                <div class="col-main">
                    <div class="main-wrap J_TRegion">
                        <div class="box J_TBox">
                            <div class="shop-infocard">
                                <div class="bd" id="shop_description">
                                    {$ShopIntroduction}
                                </div>
                            </div>
                        </div>
                        <!-- module-cache-info: module: shop.shopCard:1.0-wangpu key: user-656195019-prototype-24-7 cacheArea: 49 cachedTime: 2011-01-22 11:03:23 aliveTime: 28800 AppIP:172.24.16.162 -->
                        <div class="box J_TBox">
                            <div class="shop-infocard">
                                <div class="bd">
                                    <div id="infocard" class="infocard">
                                        <h1>
                                            {$ShopUserName}&nbsp;</h1>
                                        <dl>
                                            <dt>基本信息</dt>
                                            <dd>
                                                <ul>
                                                    <!--<li>
认证情况：

<a href="#" target="_blank">
<img src="http://img.taobaocdn.com/zfb_person_small.gif?1235" border="0" align="absmiddle" alt="支付宝实名认证" title="支付宝实名认证">
</a>
</li>-->
                                                    <li>威购店铺：
                                                        <!--<a href="ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=HomePage{$SeeWay}{$cssID}">{$ShopName}</a>-->
                                                        <!--<a href="#">{$ShopName}</a>-->
                                                        {$ShopName} </li>
                                                    <li>卖家信用：
                                                        <!--<a href="#">{$SalerCredit}</a>-->
                                                        {$SalerCredit} <span id="J_rateTipsR" tb:virtual="0%" tb:real="100%"></span>
                                                    </li>
                                                    <li>买家信用：
                                                        <!--<a href="#">{$BuyerCredit}</a>-->
                                                        {$BuyerCredit} </li>
                                                    <li>宝贝信息：
                                                        <!--<a href="../../../Member/Shop_ProductSale.aspx">出售中的宝贝</a>-->
                                                        <!--<a href="#">出售中的宝贝</a>-->
                                                        出售中的宝贝 </li>
                                                    <li>所在地区：<!--{$ShopArea}--> {$ShopProvince}&nbsp;{$ShopCity}&nbsp;{$ShopArea}</li>
                                                    <li>详细地址：{$ShopAddress}</li>
                                                    <li>注册时间：{$RegistDateTime} </li>
                                                </ul>
                                            </dd>
                                            <dt>联系信息</dt>
                                            <dd>
                                                <ul>
                                                    <li>手机号码：{$SalerTelPhone}</li>
                                                </ul>
                                            </dd>
                                        </dl>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <!--店铺地图 begin-->
                        <div class="infocard" id="map_container" style="width: 750px; height: 600px; margin: 0 auto 30px auto;">
                            地图加载中...
                        </div>
                        <!--店铺地图 end-->
                    </div>
                </div>
            </div>
        </div>
        <!-- 店铺介绍模块 -->
        <!-- 交流区 -->
        <div id="ExchangeArea" style="display: none">
            <div id="page">
                <div id="Div1" class="eshop">
                    <div id="bd" style="background-color: #FFFFFF;">
                        <div class="grid-c">
                            <div class="box">
                                <div class="shop-bbs single">
                                    <div style="text-align: left" class="hd">
                                        <h3>
                                            交流区</h3>
                                    </div>
                                    <div class="bd" style="background-color: #FFFFFF;">
                                        <div class="shop-discuss-list">
                                            <table class="info-area" style="width: 100%">
                                                <tr>
                                                    <td style="width: 10%">
                                                        <a class="ReButton" style="background-color: #D8D8D8;" href="ShopIndex.aspx?ShopID={$ShopID}&ColumnTag=ExchangeArea{$SeeWay}{$cssID}&SetTag=Essence">
                                                            精华区</a>
                                                    </td>
                                                    <td style="width: 50%; text-align: left">
                                                        <a class="ReButton" href="javascript:AddIssue()">发表新帖</a>
                                                    </td>
                                                    <td style="width: 40%; text-align: left">
                                                        <span class="hint"><strong>友情提示：</strong>掌柜未回复的贴子，买家不会看到。</span>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td colspan="3">
                                                    </td>
                                                </tr>
                                            </table>
                                            <div id="DivThreadList" style="display: none">
                                                {$ReTheadList/}
                                            </div>
                                            <div id="DivReplyList" style="text-align: left; display: none">
                                                {$ThreadContent/} {$PlaceOperation/} {$ReplyList/}
                                            </div>
                                            <div style="margin-top: 20px; text-align: center">
                                                {$LbExchangePage/}
                                                <!--到第<input id="J_PaginationInput" name="page" type="text" value="" style="" maxlength="3"/>页
			<button type="button" >确定</button>		-->
                                            </div>
                                        </div>
                                        <!-- 发布帖子 -->
                                        <table id="NewThread" style="width: 100%; display: none">
                                            <tr>
                                                <td colspan="2" style="text-align: left">
                                                    <span style="font-size: 16px; font-weight: bold;">发布新帖</span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table style="background-color: #E4E4E4; width: 100%">
                                                        <tr>
                                                            <td style="width: 50px; text-align: right">
                                                                标题：
                                                            </td>
                                                            <td style="width: 600px; text-align: left;">
                                                                <input id="posttitle" style="width: 400px" type="text" value="" />
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="width: 50px; text-align: right">
                                                                内容：
                                                            </td>
                                                            <td style="width: 600px; text-align: left;">
                                                                <textarea id="postcontent" style="width: 500px; height: 200px;">
			  	                                                </textarea>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table style="width: 100%">
                                                        <tr>
                                                            <td style="width: 50px">
                                                            </td>
                                                            <td style="width: 600px; text-align: left">
                                                                <button type="button" style="width: 100px" onclick="IssueNewThread()">
                                                                    确定</button>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                        <!-- 发布帖子 -->
                                        <!-- 帖子回复 -->
                                        <table id="TabEditThread" style="width: 100%; display: none">
                                            <tr>
                                                <td colspan="2" style="text-align: left">
                                                    <span style="font-size: 16px; font-weight: bold;">编辑帖子内容</span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table style="background-color: #E4E4E4; width: 100%">
                                                        <tr>
                                                            <td style="width: 50px; text-align: right">
                                                                内容：
                                                            </td>
                                                            <td style="width: 600px; text-align: left;">
                                                                <textarea id="EditThreadBox" style="width: 600px; height: 150px"></textarea>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table style="width: 100%">
                                                        <tr>
                                                            <td style="width: 50px">
                                                            </td>
                                                            <td style="width: 600px; text-align: left">
                                                                <input type="button" id="EditThreadBut" style="width: 100px" value="编辑" onclick="EditThreadContent()" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                        <table id="ReplyThread" style="width: 100%; display: none">
                                            <tr>
                                                <td colspan="2" style="text-align: left">
                                                    <span style="font-size: 16px; font-weight: bold;">发表回复</span>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table style="background-color: #E4E4E4; width: 100%">
                                                        <tr>
                                                            <td style="width: 50px; text-align: right">
                                                                内容：
                                                            </td>
                                                            <td style="width: 600px; text-align: left;">
                                                                <textarea id="ReplyBox" style="width: 600px; height: 150px"></textarea>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td>
                                                    <table style="width: 100%">
                                                        <tr>
                                                            <td style="width: 50px">
                                                            </td>
                                                            <td style="width: 600px; text-align: left">
                                                                <input type="button" id="replyOk" style="width: 100px; display: block" value="回复"
                                                                    onclick="ReplyThread()" />
                                                                <input type="hidden" id="HiddenReplyID" />
                                                                <input type="button" id="secondReply" style="width: 100px; display: none" value="回复"
                                                                    onclick="ReplyThread2()" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                        <!-- 帖子回复 -->
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 交流区 -->
        <!-- 回购说明 -->
        <div id="RepurchaseExplain" style="display: none">
            <div class="layout grid-m">
                <div class="col-main">
                    <div class="main-wrap J_TRegion">
                        <div class="box J_TBox">
                            <div class="shop-infocard">
                                <div class="bd" id="Div3">
                                    {$RepurchaseExplain}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 回购说明 -->
        <!-- 购买须知 -->
        <div id="BuyNotes" style="display: none">
            <div class="layout grid-m">
                <div class="col-main">
                    <div class="main-wrap J_TRegion">
                        <div class="box J_TBox">
                            <div class="shop-infocard">
                                <div class="bd" id="Div4">
                                    {$BuyNotes}
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 购买须知 -->
    </div>
    <div id="footer">
        {HL.Label ID="网站底部标签" }
    </div>
    <div class="ali-group">
    </div>
    <form id="formShopbbs" runat="server">
    <!-- 店铺logo -->
    {$HiddenShopLogo/}
    <!-- 店铺logo -->
    <!-- 横幅 -->
    {$Hiddendianbiao/} {$HiddenBackGroundImage/} {$HiddenShopTitle/} {$HiddenShowType/}
    <!-- 横幅 -->
    {$HiddenShopID/} {$HiddenUserID/} {$HiddenUserName/} {$HiddenThreadID/} {$HiddenIsOwner/}
    </form>
    <script type="text/javascript">
        var cityName ="{$ShopCity}"
        var address = "{$ShopAddress}";
        var store_name = "{$ShopName}"; 
        var map = "";
        var localCity = "";
        function initialize() {
            map = new BMap.Map("map_container");
            localCity = new BMap.LocalCity();

            map.enableScrollWheelZoom();
            localCity.get(function (cityResult) {
                if (cityResult) {
                    var level = cityResult.level;
                    if (level < 13) level = 13;
                    map.centerAndZoom(cityResult.center, level);
                    cityResultName = cityResult.name;
                    if (cityResultName.indexOf(cityName) >= 0) cityName = cityResult.name;
                    getPoint();
                }
            });
        }
        function loadScript() {
            var script = document.createElement("script");
            script.src = "http://api.map.baidu.com/api?v=1.2&callback=initialize";
            document.body.appendChild(script);
        }
        function getPoint() {
            var myGeo = new BMap.Geocoder();
            myGeo.getPoint(address, function (point) {
                if (point) {
                    setPoint(point);
                }
            }, cityName);
        }
        function setPoint(point) {
            if (point) {
                map.centerAndZoom(point, 16);
                var marker = new BMap.Marker(point);
                map.addOverlay(marker);
            }
        }
        
        $(function () {
            loadScript();
        });
    </script>
</body>
</html>
